package com.sky.mapper;

import com.sky.entity.OrderDetail;
import org.apache.ibatis.annotations.Mapper;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

@Mapper
public interface OrderDetailMapper {

    void insert(OrderDetail orderDetail);

    List<OrderDetail> getByOrderId(Long id);

    List<Map<String, Object>> getTop10(LocalDateTime begin, LocalDateTime end);
}
